package com.yjd.comm.rpm;

import com.yjd.comm.util.FrameUtil;
import com.yjd.comm.vo.Constant.PropertiesFileEnum;

/**
 * <b>description</b>：远程对象常量 <br>
 * <b>time</b>：2015-6-1下午3:34:27 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum RpmServiceKeyEnum {

	/**
	 * public service rpm url对应的key
	 */
	RPM_PUBLIC_KEY_E("rpm_service_url.public.remote.serviceurl"),
	/**
	 * job service rpm url对应的key
	 */
	RPM_JOB_KEY_E("rpm_service_url.job.remote.serviceurl"),
	/**
	 * job service rpm url对应的key
	 */
	RPM_JOB_SERVICE_KEY_E("rpm_service_url.job.remote.serviceurl"),
	/**
	 * 实名认证service rmp url对应的key
	 */
	RPM_BI_SERVICE_KEY_E("rpm_service_url.bi.remote.serviceurl"),
	/**
	 * bi_job service rpm url对应的key
	 */
	RPM_BI_JOB_SERVICE_KEY_E("rpm_service_url.bi_job.remote.serviceurl");
	
	private String rpmServiceUrlKey;
	
	public static final String RPM_PUBLIC_KEY = "rpm_service_url.public.remote.serviceurl";
	public static final String RPM_JOB_KEY = "rpm_service_url.job.remote.serviceurl";
	public static final String RPM_JOB_SERVICE_KEY = "rpm_service_url.job_service.remote.serviceurl";
	public static final String RPM_BI_SERVICE_KEY = "rpm_service_url.bi.remote.serviceurl";
	public static final String RPM_BI_JOB_SERVICE_KEY = "rpm_service_url.bi_job.remote.serviceurl";
	
	private RpmServiceKeyEnum(String rpmServiceUrlKey){
		this.rpmServiceUrlKey = rpmServiceUrlKey;
	}
	
	public String getRpmServiceUrlKey(){
		return this.rpmServiceUrlKey;
	}
	
	public String getRpmServiceUrl(){
		return FrameUtil.getResourceByFile(PropertiesFileEnum.RPM_SERVICE.getFilename(),this.getRpmServiceUrlKey());
	}
}
